import ProDescriptions from '@ant-design/pro-descriptions';
import React from 'react';
import { memo } from 'react';

const RoleInfo = ({ role }) => {
  return (
    <ProDescriptions title="角色信息" column={2}>
      <ProDescriptions.Item label="角色名称">{role?.name}</ProDescriptions.Item>
      <ProDescriptions.Item label="角色编码">{role?.code}</ProDescriptions.Item>
    </ProDescriptions>
  );
};

export default memo(RoleInfo);
